<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/V_service_charge.js此处编写
 -->
 <template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
      :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields"
      :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/mall/v_member_recharge.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: "id",
        footer: "Foots",
        cnName: "储值卡明细表",
        name: "V_member_total",
        url: "/V_member_total/",
        sortName: "createDate",
        paginationSize: 99999999,
        paginationHide: true,
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: {
        cardno: "",
        memberid: "",
        type_func: "",
        createDate: "",
        hoteldate: "",
        remark: "",
        cardtype: "",
        cardlevel: "",
        orderid: "",
        serial_number: "",
      },
      searchFormOptions: [
        [
          { title: "会员手机", field: "memberid", type: "like" },
          { title: "卡号", field: "cardno", type: "like" },
          { title: "操作时间", field: "createDate", type: "datetime" },
        ],
        [
          { title: "操作人", field: "creator", type: "like" },
          { title: "营业日期", field: "hoteldate", type: "date1" },
          {
            dataKey: "member_type_func",
            data: [],
            title: "操作类型",
            field: "type_func",
            type: "select",
          },
        ],
        [
          {
            dataKey: "Card_Type",
            data: [],
            title: "卡类型",
            field: "cardtype",
            type: "select",
          },
          { title: "卡模板", field: "cardlevel", type: "select",dataKey:'MebCardType',data: [] },
          { title: "备注", field: "remark", type: "like" },
        ],
        [
          { title: "凭证号", field: "orderid", type: "like" },
          {
            dataKey: "mall_supplier",
            data: [],
            title: "消费点位",
            field: "supplierCode",
            type: "select",
          },
          { title: "流水号", field: "serial_number", type: "like" },
        ],
      ],
      columns: [
        {
          field: "hoteldate",
          title: "营业日期",
          type: "date",
          width: 100,
          align: "left",
        },
        {
          field: "cardlevel",
          title: "卡模板",
          type: "string",
          width: 200,
          align: "left",
        },
        {
          field: "cardtype",
          title: "卡类型",
          type: "string",
          width: 220,
          require: true,
          align: "left",
          bind: { key: "Card_Type", data: [] },
        },
        {
          field: "cardno",
          title: "卡号",
          type: "string",
          width: 160,
          align: "left",
        },
        {
          field: "supplierCode",
          title: "消费点位",
          type: "string",
          width: 220,
          bind: { key: "mall_supplier", data: [] },
          align: "left",
        },
        {
          field: "member_name",
          title: "会员姓名",
          type: "string",
          width: 200,
          align: "left",
        },
        {
          field: "memberid",
          title: "会员手机",
          type: "string",
          width: 220,
          require: true,
          align: "left",
        },
        {
          field: "type_func",
          title: "操作类型",
          type: "string",
          width: 100,
          align: "left",
          bind: { key: "member_type_func", data: [] },
        },
        {
          field: "amount",
          title: "金额",
          type: "decimal",
          width: 90,
          align: "left",
        },
        {
          field: "presented_amount",
          title: "赠送金额",
          type: "decimal",
          width: 90,
          align: "left",
        },
        {
          field: "totalamount",
          title: "余额",
          type: "decimal",
          width: 90,
          align: "left",
        },
        {
          field: "orderid",
          title: "凭证号",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "serial_number",
          title: "流水号",
          type: "string",
          width: 120,
          align: "left",
        },
        {
          field: "remark",
          title: "备注",
          type: "string",
          width: 90,
          align: "left",
        },
        {
          field: "createDate",
          title: "操作时间",
          type: "datetime",
          width: 160,
          align: "left",
          sortable: true,
        },
        {
          field: "creator",
          title: "操作人",
          type: "string",
          width: 90,
          align: "left",
        }
      ],

      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: "",
      },
    };
  },
};
export default vueParam;
</script>
